function w = beale(x)
%Beale function
%n=2,m=3,x0=[1,1]
%fmin1=f5([3;0.5])=0
%Author:Ji Lin
y=[1.5,2.25,2.625];
z=ones(1,3);
for ii=1:3
    z(ii)=y(ii)-x(1)*(1-x(2)^ii);
end
w=sum(z.^2);
